package com.technology.education.widget

import android.text.TextPaint
import android.text.style.ClickableSpan
import android.view.View
import com.technology.education.utils.LogUtil.Companion.instance

open class NolineClickableSpan : ClickableSpan() {
    override fun onClick(widget: View) {
        instance!!.log("onClick")
    }

    override fun updateDrawState(ds: TextPaint) {
        /**set textColor */
        ds.color = ds.linkColor
        /**Remove the underline */
        ds.isUnderlineText = false
    }
}